package siafi.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class BusquedaServicio
 */
public class BusquedaServicio extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public BusquedaServicio() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		PrintWriter out = response.getWriter();
		out.println("<html>");
		out.println(" <head>");
		out.println(" <link href=\"./css/coolblue.css\" rel=\"stylesheet\" type=\"text/css\"/>");
		out.println(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">");
		out.println("  <title>Recibos</title>");
		out.println("</head>");
		out.println("<body>");
		out.println("   <div align=\"center\" id=\"header\">");
		out.println(" <img src=\"./images/upn.jpg\"/>");
		out.println(" </div>");
			out.println(" <div align=\"center\" id=\"content\">");
			out.println(" <form action=\"/recibosSIAFI/ReciboServicio\" method=\"post\">");
			out.println("     <table>");
			out.println(" <tr>");
			out.println(" <td colspan=\"2\"><h1>Recibo de Servicio</h1></td>");
			out.println("</tr>");
			out.println(" <tr>");
			out.println(" <td colspan=\"2\" align=\"left\"><h3>Ingrese su n&uacute;mero de documento de identidad</h3></td>");
			out.println("</tr>");
			out.println("  <tr>");
			out.println(" <td><label>N&uacute;mero de Documento</label></td>");
			out.println(" <td><input type=\"text\" size=\"30\" id=\"documento\" name=\"documento\"/></td>");
			out.println("  </tr>");

			out.println(" <tr>");
			out.println("  <td colspan=\"2\"><button type=\"submit\" class=\"button\">Siguiente</button></td>");
			out.println(" </tr>");
			out.println("</table>");
			out.println("</form>");
			out.println("</div>");
	
		out.println(" <div align=\"right\" id=\"footer\" style=\"width: 80%\">");
		out.println("<img src=\"./images/SiafiReportes.bmp\" width=\"100px\" height=\"30px\"/>");
		out.println("</div>");

		out.println("</body>");
		out.println("</html>");

		out.close();
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		PrintWriter out = response.getWriter();
		out.println("<html>");
		out.println(" <head>");
		out.println(" <link href=\"./css/coolblue.css\" rel=\"stylesheet\" type=\"text/css\"/>");
		out.println(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">");
		out.println("  <title>Recibos</title>");
		out.println("</head>");
		out.println("<body>");
		out.println("   <div align=\"center\" id=\"header\">");
		out.println(" <img src=\"./images/upn.jpg\"/>");
		out.println(" </div>");
			out.println(" <div align=\"center\" id=\"content\">");
			out.println(" <form action=\"/recibosSIAFI/ReciboServicio\" method=\"post\">");
			out.println("     <table>");
			out.println(" <tr>");
			out.println(" <td colspan=\"2\"><h1>Recibo de Servicio</h1></td>");
			out.println("</tr>");
			out.println(" <tr>");
			out.println(" <td colspan=\"2\" align=\"left\"><h3>Ingrese su n&uacute;mero de documento de identidad</h3></td>");
			out.println("</tr>");
			out.println("  <tr>");
			out.println(" <td><label>N&uacute;mero de Documento</label></td>");
			out.println(" <td><input type=\"text\" size=\"30\" id=\"documento\" name=\"documento\"/></td>");
			out.println("  </tr>");

			out.println(" <tr>");
			out.println("  <td colspan=\"2\"><button type=\"submit\" class=\"button\">Siguiente</button></td>");
			out.println(" </tr>");
			out.println("</table>");
			out.println("</form>");
			out.println("</div>");
	
		out.println(" <div align=\"right\" id=\"footer\" style=\"width: 80%\">");
		out.println("<img src=\"./images/SiafiReportes.bmp\" width=\"100px\" height=\"30px\"/>");
		out.println("</div>");

		out.println("</body>");
		out.println("</html>");

		out.close();
	}

}
